<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Segmentfault</title>

    <!-- Bootstrap core CSS -->
    <link href="../tpl/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="../tpl/css/main.css">
     <link href="./css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="./css/main.css">
    <!-- Custom styles for this template -->
   

    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>

    <nav class="navbar navbar-inverse navbar-fixed-top topnav">
      
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed btnself" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">12313</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#"><span class="logoself">segmentfault</span></a>
        </div>

        <div id="navbar" class="navbar-collapse collapse">
          <form class="navbar-form navbar-right formcs" method="post">
            <div class="form-group">
              <input type="text" placeholder="姓名" class="form-control" name="username" value="<?php echo $str['username'] ?>" >
            </div>
            <div class="form-group">
              <input type="password" placeholder="内容" class="form-control" name="msginfo" value="<?php echo $str['msginfo'] ?>">
            </div>
            <button type="submit" class="btn btn-success">登录</button>
          </form>
        </div><!--/.navbar-collapse -->
      </div>
    </nav>

    <div class="messagebox">
      <div class="box_main">

      </div>
    </div>

    <div class="comment">
      <div class="msgbox">
        <form class="form-inline" action="../action/edit.php" method="post">
          <div class="inputbox">
              <div class="form-group">
                <label for="exampleInputName2">昵称</label>
                <input type="text" class="form-control" id="exampleInputName2" value="<?php echo $str['username'] ?>" name="username" placeholder="Jane Doe">
                <input name="id" value="<?php echo $str['id'] ?>" type="hidden">
              </div>
            
          </div>
            <textarea class="col-md-12 form-control luiyan"  rows="5" style="width:100%" name="msginfo"><?php echo  trim($str['msginfo']) ?></textarea>
            <button type="submit" class="btn btn-default" >修改</button>
        </form>
      </div>
    </div>
    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="./tpl/js/jquery-1.7.2.js"></script>
    <script src="./tpl/js/bootstrap.min.js"></script>
    <script src="./tpl/js/ie10-viewport-bug-workaround.js"></script>
    <script src="./tpl/js/index.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
   <?php
     var_dump(  $str  );
    ?>
  </body>
</html>
